<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>充值退换申请</title>
		<%@include file="../collect/meta.jsp"%>
		<script type="text/javascript" charset="utf-8" src="${ctx }/calender/WdatePicker.js"></script>
		<link rel="stylesheet" href="css/radius.css" type="text/css"></link>
		<script type="text/javascript" src="${ctx}/js/returnTop.js"></script>
	</head>
	<body lang="zh-cn">
		<div class="wrapper">
			<c:import url="/muser/musertop.jsp"></c:import>
			<div class="main-container" id="main-container">
				<div class="main-container-inner">
					<c:import url="/muser/muserleft.jsp"></c:import>
					<div class="main-content">
						<div class="breadcrumbs" id="breadcrumbs">
							<ul class="breadcrumb">
								<li><i class="icon-home home-icon"></i>退换管理</li>
								<li>充值退换申请</li>
							</ul>
							<!-- .breadcrumb -->
						</div>
						<div class="page-content">
							<div class="row">
								<div class="col-xs-12">
									<!-- PAGE CONTENT BEGINS -->
									<form action="bApplication!getByCreateTimeAndMemberIdBalacne">
										<input type="text" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:186px;height:30px;" placeholder="开始时间" maxlength="11" name="beginTime" value="${beginTime}">
										<input type="text" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:186px;height:30px;" placeholder="结束时间" maxlength="11" name="endTime" value="${endTime }">
										<input type="text" id="mobile" name="member.mobile" placeholder="手机号" maxlength="11" value="${member.mobile }">
										<input type="submit" class="btn btn-primary radius btn-sm" value="搜 索">
										<c:if test="${message==null }"></c:if>
										<c:if test="${message!=null }"><span style="color: red;">${message}</span></c:if>
									</form>
									<br />
									<c:if test="${temp!=''}">
										<form>
											<table class="table table-striped table-bordered table-hover">
												<tr>
													<td><div align="center">会员账号</div></td>
													<td><div align="center">会员姓名</div></td>
													<td><div align="center">充值时间</div></td>
													<td><div align="center">充值金额</div></td>
													<td><div align="center">充值店铺</div></td>
													<td><div align="center">操作人</div></td>
													<td><div align="center">操作</div></td>
												</tr>
												<c:forEach items="${balanceList}" var="listBalance" varStatus="status">
													<tr>
														<td><div align="center">${listBalance.memberMobile}</div></td>
														<td><div align="center">${listBalance.memberName}</div></td>
														<td><div align="center">${fn:substring(listBalance.createTime, 0, fn:indexOf(listBalance.createTime, '.'))}</div></td>
														<td><div align="center">${listBalance.money}</div></td>
														<td><div align="center">${listBalance.shopName}</div></td>
														<td><div align="center">${listBalance.userName}</div></td>
														<td>
															<div align="center">
																<c:if test="${listBalance.applicationType==1}">您已申请</c:if>
																<c:if test="${listBalance.applicationType!=1}">
																	<a class="btn btn-xs btn-primary radius" href="bApplication!applicationBalance?balance.id=${listBalance.id}">申请退换</a>
																</c:if>
															</div>
														</td>
													</tr>
												</c:forEach>
											</table>
											<table width="100%"  border="0" >
												<tr bgcolor="#fff0f0">
													<td width="19%">&nbsp;</td>
													<td width="13%"><div align="center"><a href="bApplication!getByCreateTimeAndMemberIdBalacne?index=1&beginTime=${beginTime }&endTime=${endTime }&member.mobile=${member.mobile} ">第一页</a></div></td>
													<td width="13%"><div align="center"><a href="bApplication!getByCreateTimeAndMemberIdBalacne?index=${index-1}&beginTime=${beginTime }&endTime=${endTime }&member.mobile=${member.mobile} ">上一页</a></div></td>
													<td width="10%"><div align="center">${index }</div></td>
													<td width="13%"><div align="center"><a href="bApplication!getByCreateTimeAndMemberIdBalacne?index=${index+1}&beginTime=${beginTime }&endTime=${endTime }&member.mobile=${member.mobile} ">下一页</a></div></td>
													<td width="13%"><div align="center"><a href="bApplication!getByCreateTimeAndMemberIdBalacne?index=${page }&beginTime=${beginTime }&endTime=${endTime }&member.mobile=${member.mobile} ">最末页</a></div></td>
													<td width="19%">&nbsp;</td>
												</tr>
											</table>
										</form>
									</c:if>
									<!-- PAGE CONTENT ENDS -->
								</div>
								<!-- /.col -->
							</div>
							<!-- /.row -->
						</div>
						<!-- /.page-content -->
					</div>
					<!-- /.main-content -->
				</div>
				<!-- /.main-container-inner -->
				<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse" style="position: fixed; bottom: 0;">
					<i class="icon-double-angle-up icon-only bigger-110"></i>
				</a>
			</div>
			<!-- /.main-container -->
			<div class="push"></div>
		</div>
		<c:import url="/collect/down.jsp"></c:import>
	</body>
</html>

<script type="text/javascript">
	$(document).ready(function() {
		
		function getByCreateTimeAndMemberIdBalacne() {
			var url = "";
		}
		
		$('.mtuihuan > ul').show();
		$('.mtuihuan > ul > li > a').eq(1).css("color","red");
	});
</script>